Logout. with bug