XMLHTTPRequest bug fix

Hi
This is bug fix branch.