fixed pipe listening bug