fix stream error process