Fixed a problem about session