fix a nil value in AI
fix a bug of AoCai etc.