Fix: job variable was used before assignment