fix session dict