Fixed issue with out-of-order AJAX responses