fix spawning multiple processes at once
Merge pull request #9 from arve0/fix-multiple-spawn

fix spawning multiple processes at once