fixes issues with row / column confision