fix indexing/querying of objects using view index