make changed_attributes work with new enum feature