Changed a little bit scripts for spawning
Fix errors