fixed issues in serializzation on AdvancedSettings

weird error on serialization of AdvancedSettings, now fixed