Fixed Logout bug.