Patch for AJAX.