I change the code to impose a maximum allele list message length instead and in the process I fixed the bug.