fixed no spawning bug