setDirty is properly added.