Fixed a bug with pagination when a search filter is active