Corrected spawn code

Signed-off-by: thevisad <thevisad@gmail.com>
Merge pull request #1 from thevisad/master

Merge