fix several typos in AI