--- a/src/Echotron.C
+++ b/src/Echotron.C
@@ -111,11 +111,13 @@
 void
 Echotron::out (float * smpsl, float * smpsr)
 {
+ 
   int i, j, k; 
-  float rxindex, lxindex;
+  int length = Plength;
   float l,r,lyn, ryn;
-  int length = Plength;
-
+  float rxindex,lxindex;
+
+ 
 if((Pmoddly)||(Pmodfilts)) modulate_delay(); 
 else interpl = interpr = 0; 
 
@@ -136,6 +138,7 @@
 
       if(Pfilters)
       {
+
       j=0;
       for (k=0; k<length; k++)
       {   
@@ -151,7 +154,7 @@
       else
       {
       lyn += lxn->delay(l, lxindex, k, 0, 0) * ldata[k]; 		
-      ryn += rxn->delay(r, lxindex, k, 0, 0) * rdata[k];  
+      ryn += rxn->delay(r, rxindex, k, 0, 0) * rdata[k];  
       }
 
       }
@@ -165,7 +168,7 @@
       rxindex = rtime[k] + tmpmodr;   
 
       lyn += lxn->delay(l, lxindex, k, 0, 0) * ldata[k];		
-      ryn += rxn->delay(r, lxindex, k, 0, 0) * rdata[k];
+      ryn += rxn->delay(r, rxindex, k, 0, 0) * rdata[k];
       }      
 
       }