Fixed the stream example code