Fixed AI decision bug.