Fixes for AJAX.