fix can not logout when session timeout