Fixed issue where pointer Entities would still exist in collections