fixed issue with last page contents not being fetched