fix race condition which may cause running same group jobs in parallel #35