Fix error message when saving custom field