Bug fix to make 9 generations not produce duplicates