get_genotype fixed