fixed: XMLHttpRequest error in API