Fix isDirty when resetting several attributes