diff --git a/matlab/TCV/gdat_tcv.m b/matlab/TCV/gdat_tcv.m
index 0bef6122c22a231bacf861154fbb21b437678d93..86f44612d5544a00dc21f874ff79bbc4ed0a5dc3 100644
--- a/matlab/TCV/gdat_tcv.m
+++ b/matlab/TCV/gdat_tcv.m
@@ -342,7 +342,7 @@ if do_mdsopen_mdsclose
   %%%  if liuqe_version_eff==-1
   if ~iscell(mapping_for_tcv.expression) && any(strfind(mapping_for_tcv.expression,'\rtc::'))
     mdsdisconnect;
-    ishot = mdsopen('rtc',shot); % sub-tree
+    [ishot,shot_stat]  = mdsopen('rtc',shot); % sub-tree
     if any(strfind(data_request_eff,'\rtc::'))
       data_request_eff = data_request_eff(7:end);
     end