Fixing an issue with the new Spline constructor.