Fixed a crash dealing with duplicated columns on a table.