fixed a race in nondeterministic spawns