fix a pipe