Change the name from category to categories
Fixed some bugs with categories (frontend)