fix losing data received before pipe established