fix issue with schema and keyLookup