semantic: Correctly handle globalLookup.