fixed bug related to indexing objects with task contexts