refactor fix_order iteration in assembly.allmaps