Fixed bug with CategoriesController