Fixed error in AISystem