Fix a crash with AE.