fix for unexpected job state