Fixed next_generation.