Fixing the paging for historicalImport.