Fix functional alleles referring to other alleles