fix the logout bug...