fix cannot logout error