Fixed ae for non-sorted code.