The key graph in catching a culprit: basis functions. In wrong basis functions there wasn't any periods, just one slope.