Fix AIDEA implementation.