fix crash if stream_ is not set