small fix to process output stream reading