Fixed bug when saving groups and clusters in the KLX file.