fix bug for session expire