Fixed a spawning problem