fix loggin setting