fix a one in a million AI bug