Fix the create directory issue in sweepJob.