Fix longstanding generation problem

You can now run multiple generations (tested gens 3-5)