Fixed problem saving parts from the form edit page (fixes #571)