fix session creation