Fixed bug in trimming alleles