fix context set check