Fix pagination in in search