Bugfix with curve editing