diff --git a/MagickCore/effect.c b/MagickCore/effect.c
index bfbfa0c..5cd7bbd 100644
--- a/MagickCore/effect.c
+++ b/MagickCore/effect.c
@@ -128,6 +128,9 @@
     gamma,
     white_point;
 
+  ExceptionInfo
+    *exception;
+
   GeometryInfo
     geometry_info;
 
@@ -142,6 +145,7 @@
   */
   if (levels == (char *) NULL)
     return(MagickFalse);
+  exception=(&image->exception);
   flags=ParseGeometry(levels,&geometry_info);
   black_point=geometry_info.rho;
   white_point=(double) QuantumRange;
@@ -158,9 +162,9 @@
   if ((flags & SigmaValue) == 0)
     white_point=(double) QuantumRange-black_point;
   if ((flags & AspectValue ) == 0)
-    status=LevelImage(image,black_point,white_point,gamma,&image->exception);
+    status=LevelImage(image,black_point,white_point,gamma,exception);
   else
-    status=LevelizeImage(image,black_point,white_point,gamma);
+    status=LevelizeImage(image,black_point,white_point,gamma,exception);
   return(status);
 }