diff --git a/matlab/ep/extended_path.m b/matlab/ep/extended_path.m
index 01b964fe3ab91929e481724bfd8b1ca0b704ec44..0efdfeb1260b7a755a214bdb097e2ae1a2539991 100644
--- a/matlab/ep/extended_path.m
+++ b/matlab/ep/extended_path.m
@@ -46,7 +46,11 @@ dynatol = options_.dynatol;
 
 % Set default initial conditions.
 if isempty(initial_conditions)
-    initial_conditions = oo_.steady_state;
+    if isempty(M_.endo_histval)
+        initial_conditions = oo_.steady_state;
+    else
+        initial_conditions = M_.endo_histval;
+    end
 end
 
 % Set maximum number of iterations for the deterministic solver.