sync created job number with running and pending

fixes #4886