FIX: [aml] properly handle rotation