fix pagination with filter bug