Fix bug in StandardStreamPipe.