Fix saving of config.