fixed one of the pipe halting issues