fix problem with entities with references thinking they are edited when they were updated with same value.