fix error where admin edits to the custom fields were not saved