fix context ref