Fixing zero status in XHR