fix row/column swap and broken links