fixed reordering of axes