Make inventory lookup work in an obfuscated environment too.