fix pipe issue