diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc
index 1b15f908f45bb50c947c79882bddc8e0a7322058..25fe739d604c8fe171fb6d0404eef3733c83dcdf 100644
--- a/preprocessor/ModFile.cc
+++ b/preprocessor/ModFile.cc
@@ -304,7 +304,7 @@ ModFile::transformPass()
     - ramsey_policy is used
     - a BVAR command is used and there is no equation (standalone BVAR estimation)
   */
-  if (!mod_file_struct.ramsey_policy_present
+  if (!(mod_file_struct.ramsey_policy_present || mod_file_struct.discretionary_policy_present)
       && !(mod_file_struct.bvar_present && dynamic_model.equation_number() == 0)
       && (dynamic_model.equation_number() != symbol_table.endo_nbr()))
     {