Fix for "Undefined variable: job"