fixed the category filtering in the view