Fixes bug where job status was not being updated.