client: don't lose the elements ids when saving the config