Fixed a bug wiht running multiple swarms.