Fixed bug with clearModified