fixes halting a stream