removed race condition on JobStats