fix small bug in the category.index view