fixing one bug in category.index view