fix #6176: check if entity is new