ai bug found by @lzxqqqqq