Fix sloppy jobs.php code causing 500 and 418 errors