diff --git a/matlab/+estimate/nls.m b/matlab/+estimate/nls.m
index a7f22e7e6f6ea3f83586fa516e2ffd181dcca9e5..46c18c848feb6cdcc2de6335b175ecbb70f385e5 100644
--- a/matlab/+estimate/nls.m
+++ b/matlab/+estimate/nls.m
@@ -181,7 +181,7 @@ write_ssr_routine(lhs, rhs, eqname, ipnames_, M_);
 
 % Workaround for Octave bug https://savannah.gnu.org/bugs/?46282
 % Octave will randomly fail to read the ssr_* file generated in the +folder
-if isoctave
+if isoctave && octave_ver_less_than('7')
     path(path)
 end
 
diff --git a/matlab/+pac/+estimate/nls.m b/matlab/+pac/+estimate/nls.m
index 8b5a13640f89e7ccf45306d722c0b8210c92a502..5f0d89b3c8ea410866b1581af4033da8ffd9a412 100644
--- a/matlab/+pac/+estimate/nls.m
+++ b/matlab/+pac/+estimate/nls.m
@@ -98,7 +98,7 @@ write_ssr_routine(lhs, rhs, eqname, ipnames_, M_, pacmodl);
 
 % Workaround for Octave bug https://savannah.gnu.org/bugs/?46282
 % Octave will randomly fail to read the ssr_* file generated in the +folder
-if isoctave
+if isoctave && octave_ver_less_than('7')
     path(path)
 end