Fixes incorrect stream usage.
Fixes incorrect stream usage.