fix some session problem