fix some session bug