diff --git a/matlab/TCV/gdat_tcv.m b/matlab/TCV/gdat_tcv.m
index 087cc6555dab3df1bb73d1cc422fc25d79dce3d7..f5267b909821e73d4471ad02136111b75cd28ae5 100644
--- a/matlab/TCV/gdat_tcv.m
+++ b/matlab/TCV/gdat_tcv.m
@@ -1577,8 +1577,8 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
       % EC
 
       if gdat_data.gdat_params.ec_inputs
-      % fill ec_inputs from write_pgyro
-      [~,time,pgyro,pgyro_ecrh,gyro2launcher,freq2launcher,~,~] = write_pgyro(shot,'doplots',0);
+        % fill ec_inputs from write_pgyro
+        [~,time,pgyro,pgyro_ecrh,gyro2launcher,freq2launcher,~,~] = write_pgyro(shot,'doplots',0);
 
         ec_inputs.pgyro.data = pgyro;
         ec_inputs.pgyro.t = time;