redo/undo crash while drawing spline fix