diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index c8832c7c3adf673aff91204253c3181104acc89e..ae87ac98d000359e494a61ca0ed86c4b231fa418 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -363,7 +363,7 @@ ModelTree::computeNonSingularNormalization(jacob_map_t &contemporaneous_jacobian
               if (static_jacobian.find(eq_and_endo) == static_jacobian.end())
                 static_jacobian[eq_and_endo] = 0;
               if (dynamic_jacobian.find({ 0, eq_and_endo.first, eq_and_endo.second }) == dynamic_jacobian.end())
-                dynamic_jacobian[{ 0, eq_and_endo.first, eq_and_endo.second }] = nullptr;
+                dynamic_jacobian[{ 0, eq_and_endo.first, eq_and_endo.second }] = Zero;
               if (contemporaneous_jacobian.find(eq_and_endo) == contemporaneous_jacobian.end())
                 contemporaneous_jacobian[eq_and_endo] = 0;
               try