Logout bug fixed