Fixed syntactical error preventing spawning