Fixed bug. No more useless relogin.