Fix spawning programs