Typo fix: Mark job state after marking task states