Fix axes inversion