removes bug in curve saving