resuming ended streams does not work