fixed sync mode in AJAX