Make setDirty consistent.