Fix bug with static spawn.