fixed bug with 'Chromosome is empty' exception