Fixed crash when spawning as sumo character.