fix for stream_buffer free (nw)