bugfix for saving kind

The counter for columns were not saved any more