fix loss of property data when renaming to the same name