Set isDirty to false after deserializing