Fix AI defect.
skip repeated state.