fixed the categories_contoller bug