If you change the search input, reset pagination. Otherwise you land on the 10 page, but there are just 3 pages.