Fixed paging when filtering