Fix stream abstraction.