fix pipe spawning