updated job type check in saving jobs.