fixed for comparing attributes with changed_attributes