diff --git a/TCV/loadTCVdata.m b/TCV/loadTCVdata.m
index 99dec81253c96c39ffa225c6768dd79a013ef22e..b21cf04f46881f688ecbe8a06dfbf0713037869e 100644
--- a/TCV/loadTCVdata.m
+++ b/TCV/loadTCVdata.m
@@ -560,17 +560,36 @@ switch TCVkeywrdcase{index}
     mdsopen(shot);
     if strcmp(TCVkeywrdcase{index},'profnerho')
       nodenameeff=['\results::THOMSON.PROFILES.AUTO:ne'];
+      avers=tdi('\results::THOMSON.PROFILES.AUTO:ne:version_num');
     end
     if strcmp(TCVkeywrdcase{index},'profterho')
       nodenameeff=['\results::THOMSON.PROFILES.AUTO:te'];
+      avers=tdi('\results::THOMSON.PROFILES.AUTO:te:version_num');
     end
-    tracetdi=tdi(nodenameeff);
-    trace.data=tracetdi.data'; % error in dimensions for autofits
-    if ~isempty(tracetdi.dim)
-      disp('assumes dim{2} for x in THOMSON.PROFILES.AUTO')
-      trace.x=tracetdi.dim{2};
-      trace.t=tracetdi.dim{1};
+    if avers.data>0
+      tracetdi=tdi(nodenameeff);
+      if avers.data < 2.99
+        % for earlier version the bug made it to have logically (rho,t)
+        if ~isempty(tracetdi.dim)
+          trace.x=tracetdi.dim{1};
+          trace.t=tracetdi.dim{2};
+        else
+          trace.x=[];
+          trace.t=[];
+        end
+      else
+        trace.data=tracetdi.data'; % error in dimensions for autofits
+        if ~isempty(tracetdi.dim)
+          disp('assumes dim{2} for x in THOMSON.PROFILES.AUTO')
+          trace.x=tracetdi.dim{2};
+          trace.t=tracetdi.dim{1};
+        else
+          trace.x=[];
+          trace.t=[];
+        end
+      end
     else
+      tracetdi=avers;
       trace.x=[];
       trace.t=[];
     end