Fixed Logout Bug