fix session getting