fix edge case with reshape on row to column vector and vice versa