[Bug 1826] wrong stream implemention