Fix AJAX error messages.