fixes Stream.reset