Fix parent child pipe issue