Stream_Writer buffer fix