diff --git a/doc/synopsis/Makefile b/doc/synopsis/Makefile
index 16e2f7d64..b5b46481e 100644
--- a/doc/synopsis/Makefile
+++ b/doc/synopsis/Makefile
@@ -58,7 +58,7 @@ categories.png: categories.dot
categories-imagemap.html: categories.dot
rm -f $@
- echo '
' > $@
+ echo '
' > $@
dot -Tcmapx $^ >> $@
api-examples.gfs: api-examples.txt MkExx.hs
diff --git a/doc/synopsis/categories.dot b/doc/synopsis/categories.dot
index 69cf67e74..3bedfb172 100644
--- a/doc/synopsis/categories.dot
+++ b/doc/synopsis/categories.dot
@@ -1,5 +1,5 @@
-digraph categories {
+digraph categoriesmap {
size = "11,11" ;
node [href="#\N"];
diff --git a/doc/synopsis/template.html b/doc/synopsis/template.html
index b53841220..9b076f71d 100644
--- a/doc/synopsis/template.html
+++ b/doc/synopsis/template.html
@@ -43,7 +43,7 @@ $endfor$
$if(title)$