Fixed semi fatal bug in the job list generation casuing invalid jobs.

I only realised this one after I had looked at the tables.
Fixed semi fatal bug in the job list generation casuing invalid jobs.