fix pipe out bug
fix pipe stdout interact mode bug