Index: trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
===================================================================
--- trunk/MagicSoft/Mars/mraw/MRawEvtData.cc	(revision 1914)
+++ trunk/MagicSoft/Mars/mraw/MRawEvtData.cc	(revision 1947)
@@ -420,7 +420,8 @@
         // get the spiral pixel number from the run header
         //
-        const UShort_t npix = fRunHeader->GetPixAssignment(i);
-
         const UShort_t ipos = npos+i;
+
+        const UShort_t npix = fRunHeader->GetPixAssignment(ipos);
+
         //
         //  This is to fill the data of one pixel to the MRawEvtHeader Class.
@@ -440,4 +441,6 @@
         //}
     }
-}
-
+
+    fPosInArray++;
+}
+
