Added a log for job.py and handled broken 'next_field' keys.