Fix the creating of the indexing for ontologies.