fixed entity count explosion