fix clearing the custom fields