fix row/column mixup when displaying data