diff --git a/magick/token.c b/magick/token.c
index 7dc28cb..dbffcef 100644
--- a/magick/token.c
+++ b/magick/token.c
@@ -364,13 +364,6 @@
         break;
     switch (GetUTFCode(pattern))
     {
-      case '\\':
-      {
-        pattern+=GetUTFOctets(pattern);
-        if (GetUTFCode(pattern) != 0)
-          pattern+=GetUTFOctets(pattern);
-        break;
-      }
       case '*':
       {
         MagickBooleanType
@@ -533,6 +526,12 @@
           }
         break;
       }
+      case '\\':
+      {
+        pattern+=GetUTFOctets(pattern);
+        if (GetUTFCode(pattern) != 0)
+          pattern+=GetUTFOctets(pattern);
+      }
       default:
       {
         if (case_insensitive != MagickFalse)