issue fixed if user adds a point between start and end point of the spline