Fixed a Bug in allele model generation