fix context reference