diff --git a/src/Exceptionless/Models/Collections/SettingsDictionary.cs b/src/Exceptionless/Models/Collections/SettingsDictionary.cs index 831ee76d..6610d1ee 100644 --- a/src/Exceptionless/Models/Collections/SettingsDictionary.cs +++ b/src/Exceptionless/Models/Collections/SettingsDictionary.cs @@ -229,10 +229,12 @@ private string GetTypeAndSourceSetting(string type, string source, string defaul Dictionary sourceDictionary; string sourcePrefix; if (!_typeSourceEnabled.TryGetValue(type, out sourceDictionary)) { - sourcePrefix = "@@" + type + ":"; - _eventTypes.Add(type, sourcePrefix); sourceDictionary = new Dictionary(StringComparer.OrdinalIgnoreCase); _typeSourceEnabled.Add(type, sourceDictionary); + + sourcePrefix = "@@" + type + ":"; + if (!_eventTypes.ContainsKey(type)) + _eventTypes.Add(type, sourcePrefix); } else { sourcePrefix = _eventTypes[type]; }