Fix the running jobs counter to work properly.