fix top-level context