Fixing swarm arrays and indices.