Fixed the Bezier spline