fixed bug with nextGeneration()