fix bug that overrided the existing config when using setConfig and setConfigFromString