diff --git a/doc/src/Modify.txt b/doc/src/Modify.txt
index f7d94c89e977a37b3ce00cea250548b09f5f21eb..4b16ad781b997d5ab437a4c54ece8b7eebb12cce 100644
--- a/doc/src/Modify.txt
+++ b/doc/src/Modify.txt
@@ -14,7 +14,7 @@ Section"_Errors.html :c
 
 :line
 
-Modify & extend LAMMPS :h3
+Modify & extend LAMMPS :h2
 
 LAMMPS is designed in a modular fashion so as to be easy to modify and
 extend with new functionality.  In fact, about 95% of its source code
diff --git a/doc/src/Modify_dump.txt b/doc/src/Modify_dump.txt
index 9667a1b1fc057e41d79bac181b99ff5a18bc7832..81af54e0039a3ad9f95f34f7f0498457914a6f6d 100644
--- a/doc/src/Modify_dump.txt
+++ b/doc/src/Modify_dump.txt
@@ -7,7 +7,7 @@ Documentation"_ld - "LAMMPS Commands"_lc :c
 
 :line
 
-Dump styles :h2
+Dump styles :h3
 
 Classes that dump per-atom info to files are derived from the Dump
 class.  To dump new quantities or in a new format, a new derived dump