Index: /trunk/FACT++/src/ratecontrol.cc
===================================================================
--- /trunk/FACT++/src/ratecontrol.cc	(revision 13755)
+++ /trunk/FACT++/src/ratecontrol.cc	(revision 13756)
@@ -157,5 +157,5 @@
         DimClient::sendCommandNB("FTM_CONTROL/SET_THRESHOLD", (void*)val, 8);
 
-        fBlock[idx] = true;
+        fBlock[idx/4] = true;
     }
 
@@ -218,12 +218,12 @@
             }
 
+            if (fBlock[i])
+            {
+                fBlock[i] = false;
+                continue;
+            }
+
             for (int j=0; j<4; j++)
             {
-                if (fBlock[i*4+j])
-                {
-                    fBlock[i*4+j] = false;
-                    continue;
-                }
-
                 // For the noise pixel correct down to median+3*deviation
                 if (maxi==j)
@@ -549,5 +549,5 @@
 public:
     StateMachineRateControl(ostream &out=cout) : StateMachineDim(out, "RATE_CONTROL"),
-        fTriggerOn(false), fBlock(160),
+        fTriggerOn(false), fBlock(40),
         fStatusDim(make_pair(Time(), -2)),
         fStatusFTM(make_pair(Time(), -2)),
