fixing swarm AI