fix session context error