update job model algorithm had nil bug