fix settings and judge