fix job category state not change when job start or stoped