fix pipe edit bug