Loggin fix