Fix for memory leak of  _streams/streams