Minor fix in Stream class.