Set correctly the row when changing the column