Fixed compilation error in Ai