Fixed "slight" (infinite loop) Logout bug