fix session issue