fix bug in loci counts