Fix XHR

(hopefully)