Are you using the SaveConfig function by any chance? I solved replacing it with TryUpdateDefaultConfigFile