diff --git a/tsg_io/readTsgDataLabview.m b/tsg_io/readTsgDataLabview.m
index c30bf5291ffd908518a76e1d3a513944deca7b04..26693922d547d5aedc354196efbc992679807f65 100644
--- a/tsg_io/readTsgDataLabview.m
+++ b/tsg_io/readTsgDataLabview.m
@@ -126,7 +126,7 @@ if fid ~= -1
     % loop on all TsgRaw data
     % -----------------------
     for i=1:nbrecords
-
+      
       % remove leading and trailing white space when string contain NaN
       % ---------------------------------------------------------------
       if ~strcmp(strtrim(TsgRaw(i,:)), 'NaN')
@@ -139,8 +139,10 @@ if fid ~= -1
         % --------------------
         if isempty( errmsg )
           if ~isempty( freq )
-            ssjt_freq(i) = freq(1)/19 + 2100;
-            cndc_freq(i) =  sqrt(freq(2)*2100 + 6250000);
+            if size(freq,1) == 2
+              ssjt_freq(i) = freq(1)/19 + 2100;
+              cndc_freq(i) =  sqrt(freq(2)*2100 + 6250000);
+            end
           end
         else
           sprintf( '\n Function readTsgDataLabview' );