fix a pipe issue