Restored code in setChromosomeNumber()