fixed bug introduced when fixing lookups to be remote when needed