fix context sharing