fix for broken isDirty method