core: fix context updates when checking private constructs