diff --git a/mex/sources/k_order_perturbation/dynamic_dll.cc b/mex/sources/k_order_perturbation/dynamic_dll.cc
index 5c1fbbf7bd50b9565fb0e2c7fe7f4f47f5efd574..a7943db9e740c0613ff0fcdd757cff9747f00772 100644
--- a/mex/sources/k_order_perturbation/dynamic_dll.cc
+++ b/mex/sources/k_order_perturbation/dynamic_dll.cc
@@ -91,7 +91,6 @@ void
 DynamicModelDLL::eval(const Vector &y, const Vector &x, const Vector &modParams, const Vector &ySteady,
                       Vector &residual, TwoDMatrix *g1, TwoDMatrix *g2, TwoDMatrix *g3) throw (DynareException)
 {
-  Dynamic(y.base(), x.base(), 1, modParams.base(), ySteady.base(), 0, residual.base(),
-          g1 == NULL ? NULL : g1->base(),
+  Dynamic(y.base(), x.base(), 1, modParams.base(), ySteady.base(), 0, residual.base(), g1->base(),
           g2 == NULL ? NULL : g2->base(), g3 == NULL ? NULL : g3->base());
 }