fix AJAX