Fixes bug preventing doJob to work.