Fix asynchronicity pb in job submission.