fix a bug of YanYu AI