fixed pipe error