Fix frontend AJAX error.