Fixed AI targeting bug.