added a quick fix to getX to fix a bug related to constructing spline bases. full bug fix will involve a slight rethink on the main fitting function.