Fixed bug filtering for products on previous pages