fixed isModified check