diff --git a/MagickCore/segment.c b/MagickCore/segment.c
index a56976d..b5e1968 100644
--- a/MagickCore/segment.c
+++ b/MagickCore/segment.c
@@ -1830,7 +1830,7 @@
       }
   }
   if (IsRGBColorspace(colorspace) == MagickFalse)
-    (void) TransformImageColorspace(image,colorspace);
+    (void) TransformImageColorspace(image,colorspace,exception);
   /*
     Initialize histogram.
   */
@@ -1847,7 +1847,7 @@
   status=Classify(image,extrema,cluster_threshold,WeightingExponent,verbose,
     exception);
   if (IsRGBColorspace(colorspace) == MagickFalse)
-    (void) TransformImageColorspace(image,colorspace);
+    (void) TransformImageColorspace(image,colorspace,exception);
   /*
     Relinquish resources.
   */