Fixed spawning error