Add category filter for subcategories. fixed sintax errors.