diff --git a/matlab/dyn_first_order_solver.m b/matlab/dyn_first_order_solver.m
index 736bc4dfaf17cfc3c48132a3f17139826733fe8c..e7f9494026512bdb1aad7e687010e8a7a57b7622 100644
--- a/matlab/dyn_first_order_solver.m
+++ b/matlab/dyn_first_order_solver.m
@@ -64,7 +64,7 @@ function [dr,info] = dyn_first_order_solver(jacobia,DynareModel,dr,DynareOptions
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-persistent reorder_jacobian_columns innovations_idx index_s index_m index_c index_p row_indx index_0m index_0p k1 k2 j3 j4
+persistent reorder_jacobian_columns innovations_idx index_s index_m index_c index_p row_indx index_0m index_0p k1 k2 j3 j4 state_var
 persistent ndynamic nstatic nfwrd npred nboth nd nyf n