Logout fix