fix session id problem