trying to solve the job state issue