Bugfix when changing curve range after editing curve