Fixed bug adding swarms.