Tweaks of spawn script logics