Fixes return value of job