fixing small issue in the category.index view