fix the index bug of the category index and tag index.