Fix in ajax.php