fixed bug with reference allele encoding