diff --git a/doc/sam.1 b/doc/sam.1
index 43566a3..c2eafe0 100644
--- a/doc/sam.1
+++ b/doc/sam.1
@@ -846,7 +846,7 @@ and thus may vary depending upon your configuration.
The terminal can be configured at runtime using environment variables
.Po
see
-.Xs ENVIRONMENT
+.Sx ENVIRONMENT
below
.Pc
or by writing a
@@ -875,7 +875,7 @@ The answer
.Sy y
causes writing; anything else skips the file.
Note that
-.P "sam.save"
+.Pa "sam.save"
is a shell script,
passed directly to
.Xr sh 1 "."
Please consider applying this patch: