Fixed a bug in the b-spline solutions.