Fixed spawning in Editor.