Pagination fix in filters