Fix error involving shared output pipe