Fixed bug in isDirtyProperty