fix session error