fix filtering by categories