fix judge coutns