diff --git a/src/ImageSharp/Formats/ImageFormatManager.cs b/src/ImageSharp/Formats/ImageFormatManager.cs
index d927b87d13..f3fde403da 100644
--- a/src/ImageSharp/Formats/ImageFormatManager.cs
+++ b/src/ImageSharp/Formats/ImageFormatManager.cs
@@ -37,7 +37,7 @@ namespace SixLabors.ImageSharp.Formats
///
/// The list of supported s.
///
- private readonly ConcurrentBag imageFormatDetectors = new();
+ private ConcurrentBag imageFormatDetectors = new();
///
/// Initializes a new instance of the class.
@@ -144,7 +144,7 @@ namespace SixLabors.ImageSharp.Formats
///
/// Removes all the registered image format detectors.
///
- public void ClearImageFormatDetectors() => this.imageFormatDetectors.Clear();
+ public void ClearImageFormatDetectors() => this.imageFormatDetectors = new();
///
/// Adds a new detector for detecting mime types.