bug fixes in oti indexing