Fix loggin bug desktop