diff --git a/tsgqc.m b/tsgqc.m
index ad8e9ab150b2191eda38288b530f9ed2a747b9a8..1d3c29e3028e33be4b5ff02e04f8b0c178acae99 100644
--- a/tsgqc.m
+++ b/tsgqc.m
@@ -2773,8 +2773,9 @@ end
         % --------------------------------------------------
         if strcmp( get(hMapFig, 'Visible'), 'on')
           
-          % Select the map axes
-          % -------------------
+          % Select the map axes, we cannot use mline as line with an axes
+          % in first parameter like:  m_line(hPlotAxes(4), ....)
+          % ------------------------------------------------------------
           axes( hPlotAxes(4));
           
           % Look for a MARKER (Red point) on the ship track
@@ -2787,7 +2788,7 @@ end
               
               % Plot a Marker (Red point) on the ship track
               % -------------------------------------------
-              hMarker = m_line( mod(tsg.LONX(indCursor(1)) + ...
+              hMarker = m_line(mod(tsg.LONX(indCursor(1)) + ...
                 tsg.lonplus, tsg.lonmod) - tsg.lonplus,...
                 tsg.LATX(indCursor(1)),...
                 'Marker', 'o', 'MarkerSize', 5, ...
@@ -2806,7 +2807,7 @@ end
               % Delete the Marker and redraw it
               % -------------------------------
               delete( h);
-              hMarker = m_line( ...
+              hMarker = m_line(...
                 tsg.LONX(indCursor), tsg.LATX(indCursor),...
                 'Marker', 'o', 'MarkerSize', 5, ...
                 'Color', 'r', 'MarkerFaceColor', 'r');
@@ -4163,9 +4164,10 @@ end
             % loop over 3 subplot and draw vertical lines
             % -------------------------------------------
             for iplot = 1:3
-              axes( hPlotAxes(iplot));
+              % axes( hPlotAxes(iplot));
               limy = get(hPlotAxes(iplot), 'YLim');
-              line([x x], limy, 'color', 'k', 'tag', 'VERTICAL_TAG_LINE');
+              line(hPlotAxes(iplot), [x x], limy,...
+                'color', 'k', 'tag', 'VERTICAL_TAG_LINE');
               
               % to immediately display changes to object data, call
               % the drawnow function instead of setting EraseMode to 'xor'.