ensure that columns are correctly ordered - issue #219