diff --git a/src/THcShowerArray.cxx b/src/THcShowerArray.cxx
index 100a52f5eb9eacf2a79375ccd42b466c40b67701..6e294ac9741bffcb01264b5804fba0ea7fec0cda 100644
--- a/src/THcShowerArray.cxx
+++ b/src/THcShowerArray.cxx
@@ -399,8 +399,8 @@ Int_t THcShowerArray::CoarseProcess( TClonesArray& tracks )
   THcShowerHitSet HitSet;         //set of hits
 
   UInt_t k=0;
-  for (UInt_t i=0; i<fNRows; i++) {
-    for(UInt_t j=0; j < fNColumns; j++) {
+  for(UInt_t j=0; j < fNColumns; j++) {
+    for (UInt_t i=0; i<fNRows; i++) {
 
       if (fA_p[k] > 0) {    //hit