Fix logic error, swap row/col.