Fixed rows and columns being swapped.