diff --git a/Source/Core/Map/MapSet.cs b/Source/Core/Map/MapSet.cs
index 8b1a97735a64e933c14db6cd304c65fbffea1a88..5cb07cfcb0af2bd05ac89974b19536bfb3c5161c 100755
--- a/Source/Core/Map/MapSet.cs
+++ b/Source/Core/Map/MapSet.cs
@@ -31,6 +31,8 @@ using CodeImp.DoomBuilder.Types;
 using CodeImp.DoomBuilder.Windows;
 using CodeImp.DoomBuilder.VisualModes;
 using System.Diagnostics;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement;
+
 
 #endregion
 
@@ -3840,7 +3842,8 @@ namespace CodeImp.DoomBuilder.Map
 						}
 						// SRB2 also has separate trigger tag field
 						int triggertag = sectors[i].Fields.GetValue("triggertag", 0);
-						if (triggertag > 0) usedtags.Add(triggertag, false);
+						if (triggertag == 0) continue;
+						if (!usedtags.ContainsKey(triggertag)) usedtags.Add(triggertag, false);
 					}
 					break;
 			}