fix one small bug in the categoery.index view