Fix pagination on serarch page