Fixed a code bug in track XHR requests