fix undead pets bug