diff --git a/coders/json.c b/coders/json.c
index 541c0c7..7984205 100644
--- a/coders/json.c
+++ b/coders/json.c
@@ -414,7 +414,7 @@
     GetMagickPrecision(),channel_moments[channel].ellipse_intensity);
   for (i=0; i < 8; i++)
     n+=FormatLocaleFile(file,"      I%.20g: %.*g\n",i+1.0,GetMagickPrecision(),
-      channel_moments[channel].I[i]);
+      channel_moments[channel].invariant[i]);
   return(n);
 }