Fix numeric error when computing haploid probability