diff --git a/MagickWand/compare.c b/MagickWand/compare.c
index 7af0025..b61b394 100644
--- a/MagickWand/compare.c
+++ b/MagickWand/compare.c
@@ -392,7 +392,7 @@
             if (channel < 0)
               ThrowCompareException(OptionError,"UnrecognizedChannelType",
                 argv[i]);
-            SetPixelChannelMapMask(image,(ChannelType) channel);
+            SetPixelChannelMask(image,(ChannelType) channel);
             break;
           }
         if (LocaleCompare("colorspace",option+1) == 0)