Bugfix: Clear button did not delete curve.