Fixed bug with category filtering