fix ProcessPipes