Fixed a 'dangling pointer' problem with entities that are 'unvisited', most likely triggered by YARP not providing a full list of ports, and fixed a problem with the positioning of re-appearing entities.