fixed another out of bound bug in spline solver