fix trying to spawn too early
Merge pull request #4 from bsuh/bugfix

fix trying to spawn too early