fix bug when enable of assessSession is false