fixed axes permutation bug