XmlHttpRequest re-use fixes