Fix the third last index of ontology pagination