fixed rows/columns index mixup