Fix issue where duplicate XHRs are queued up