fix for extend streams