fix XHR fallback