Fixed concurrency issue for jobs.