Fix if statement in jobs.mote.