Fixed create stream error handling