further fixed propDirty, added unit test for it