Fixed a race condition when a job is picked up by 2 workers