Fixed bug with category filter