fixed pagination on filter change