Fixed AAE code.