diff --git a/MagickCore/blob.c b/MagickCore/blob.c
index 0bd7413..7fb96c9 100644
--- a/MagickCore/blob.c
+++ b/MagickCore/blob.c
@@ -409,10 +409,10 @@
       */
       for (images=GetFirstImageInList(image); images != (Image *) NULL; )
       {
-        (void) CopyMagickMemory(images->magick_filename,image_info->filename,
-          sizeof(images->magick_filename));
         (void) CopyMagickMemory(images->filename,image_info->filename,
           sizeof(images->filename));
+        (void) CopyMagickMemory(images->magick_filename,image_info->filename,
+          sizeof(images->magick_filename));
         images=GetNextImageInList(images);
       }
     }
diff --git a/coders/jnx.c b/coders/jnx.c
index abe11a1..677640c 100644
--- a/coders/jnx.c
+++ b/coders/jnx.c
@@ -292,6 +292,7 @@
       (void) SeekBlob(image,offset,SEEK_SET);
       if (tile_image == (Image *) NULL)
         continue;
+       (void) CopyMagickString(tile_image->magick,image->magick,MaxTextExtent);
       (void) FormatImageProperty(tile_image,"jnx:northeast","%.20g,%.20g",
         northeast.x,northeast.y);
       (void) FormatImageProperty(tile_image,"jnx:southwest","%.20g,%.20g",