fixed XMLHttpRequest not sending data