fix shared session bug