fixing bugs in allels array usage