Changed the paging of the adverts to work correctly.