Fix for bug: Logout not working when you're logged out automatically..