fix _unmark_dirty_fields with empty fields