fix another bug with dom stream