Minor fix for stream constructor