FIX: [aml] properly handle rotation

/cc @Memphiz