Crash fix for Swarm Pets.