diff --git a/wand/mogrify.c b/wand/mogrify.c
index ba70b74..9084b82 100644
--- a/wand/mogrify.c
+++ b/wand/mogrify.c
@@ -596,10 +596,7 @@
   ImageInfo
     *mogrify_info;
 
-  ssize_t
-    count;
-
-  MagickBooleanType
+  MagickStatusType
     status;
 
   MagickPixelPacket
@@ -618,6 +615,9 @@
   register ssize_t
     i;
 
+  ssize_t
+    count;
+
   /*
     Initialize method variables.
   */
@@ -2724,11 +2724,6 @@
             *image=resize_image;
             break;
           }
-        if (LocaleNCompare("respect-parentheses",option+1,17) == 0)
-          {
-            respect_parenthesis=(*option == '-') ? MagickTrue : MagickFalse;
-            break;
-          }
         if (LocaleCompare("roll",option+1) == 0)
           {
             Image
@@ -3974,23 +3969,24 @@
   ImageStack
     image_stack[MaxImageStackDepth+1];
 
-  ssize_t
-    j,
-    k;
-
-  register ssize_t
-    i;
-
   MagickBooleanType
     global_colormap;
 
   MagickBooleanType
     fire,
-    pend;
+    pend,
+    respect_parenthesis;
 
   MagickStatusType
     status;
 
+  register ssize_t
+    i;
+
+  ssize_t
+    j,
+    k;
+
   /*
     Set defaults.
   */
@@ -4022,6 +4018,7 @@
   NewImageStack();
   option=(char *) NULL;
   pend=MagickFalse;
+  respect_parenthesis=MagickFalse;
   status=MagickTrue;
   /*
     Parse command line.
@@ -5760,6 +5757,11 @@
               ThrowMogrifyInvalidArgumentException(option,argv[i]);
             break;
           }
+        if (LocaleNCompare("respect-parentheses",option+1,17) == 0)
+          {
+            respect_parenthesis=(*option == '-') ? MagickTrue : MagickFalse;
+            break;
+          }
         if (LocaleCompare("reverse",option+1) == 0)
           break;
         if (LocaleCompare("roll",option+1) == 0)