fix genotype index problem.