fix chromosomes switching