Reading wrong end of array for interpolation.
Fix order for spline calc