fix session problem