fix up spawning issue