Fixed generation of ref cols.