fix loggin