bug fix: if a job does not exist it now raises an error