Fix for saving of the settings