Fixed bug when ant count was greater than node count