fix bug when session id expired.