diff --git a/matlab/perfect-foresight-models/perfect_foresight_with_expectation_errors_solver.m b/matlab/perfect-foresight-models/perfect_foresight_with_expectation_errors_solver.m
index 499953c4ac72bbd28668985bc114bb4518ec5dcd..c2e7f0fed3226dd54c8cf391d565a334ca11e4d1 100644
--- a/matlab/perfect-foresight-models/perfect_foresight_with_expectation_errors_solver.m
+++ b/matlab/perfect-foresight-models/perfect_foresight_with_expectation_errors_solver.m
@@ -34,11 +34,6 @@ exo_simul = oo_.exo_simul;
 % Start main loop around informational periods
 info_period = 1;
 increment = 0;
-if isempty(ys0_)
-    initial_steady_state = oo_.steady_state;
-else
-    initial_steady_state = ys0_;
-end
 while info_period <= periods
     if ~options_.noprint
         fprintf('perfect_foresight_with_expectations_errors_solver: computing solution for information available at period %d\n', info_period)