Reverted an AI bug fix