fixed infinite loop issue when picking next judge.