fixed errors from deleting custom field