Improved the harvesting when dealing with resubmit jobs