fix to broken aiwander logic