Fixed ai mechanic error.