Adding a fix for Chromosome 0, makeing code more robust