fix pipe problem