fix minor bug in CategoriesController