diff --git a/matlab/optimal_policy/dyn_ramsey_static.m b/matlab/optimal_policy/dyn_ramsey_static.m
index 8e99a14eba3e76078994280b1f36f662d3e45dc5..dcdf20f78fcd69bd74bb485c539d2223c9fe5b0d 100644
--- a/matlab/optimal_policy/dyn_ramsey_static.m
+++ b/matlab/optimal_policy/dyn_ramsey_static.m
@@ -25,7 +25,7 @@ function [steady_state, params, check] = dyn_ramsey_static(ys_init, exo_ss, M_,
 % SPECIAL REQUIREMENTS
 %    none
 
-% Copyright © 2003-2023 Dynare Team
+% Copyright © 2003-2024 Dynare Team
 %
 % This file is part of Dynare.
 %
@@ -137,7 +137,7 @@ end
 % Compute the value of the Lagrange multipliers that minimizes the norm of the
 % residuals, given the other endogenous
 if options_.bytecode
-    res = bytecode('static', M_, options, xx, exo_ss, M_.params, 'evaluate');
+    res = bytecode('static', M_, options_, xx, exo_ss, M_.params, 'evaluate');
 else
     res = feval([M_.fname '.sparse.static_resid'], xx, exo_ss, M_.params);
 end