fixed SpawnBugs