bugFix logout