fix row/column major