fix extra } in swarm.c