Loggin bug fixed