Bugfix editing/saving curves