fixed ai.php path issues