fix bugs for Judge err