Genotype checking bug fix