fixed bug in CategoriesController#new_or_edit