fixed an AI mechanci error