fix session issues