a few fixes to keep multistream support from causing problems on Firefox (which doesn't support much).