fix for long allele slowdown in normalize_alleles