diff --git a/muppet/puppet/__main__.py b/muppet/puppet/__main__.py
index 080a2db679667bcad1afb6f2f910eee15f99ac36..4209c9fcee4bf72b4a4c2fe8388a9817ed1c7f4d 100644
--- a/muppet/puppet/__main__.py
+++ b/muppet/puppet/__main__.py
@@ -36,7 +36,7 @@ def __main() -> None:
     def output(thingy: Any) -> None:
         match args.format:
             case 'json':
-                json.dump(result, sys.stdout, indent=args.pretty)
+                json.dump(thingy, sys.stdout, indent=args.pretty)
                 print()
             case 'python':
                 if indent := args.pretty:
diff --git a/muppet/syntax_highlight/andre_simon.py b/muppet/syntax_highlight/andre_simon.py
index 7bbcd433bdcaf1dba7f86a80e12f4464b99310d2..8cd6b8d487a94d8e9c74ef68dfd400f40c15753c 100644
--- a/muppet/syntax_highlight/andre_simon.py
+++ b/muppet/syntax_highlight/andre_simon.py
@@ -22,7 +22,7 @@ def highlight(code: str, language: str) -> str:
                           '--fragment',
                           '--line-numbers',
                           '--anchors',
-                          '--anchors-prefix=line',
+                          '--anchor-prefix=line',
                           '--class-name=NONE',
                           '--syntax', language,
                           '--enclose-pre'],
diff --git a/muppet/syntax_highlight/pygments.py b/muppet/syntax_highlight/pygments.py
index 4a8fc729c96d474912d313bae90488709d6cbe1e..33a1c6c50cc49c1366d4747acf6bb35493a567bf 100644
--- a/muppet/syntax_highlight/pygments.py
+++ b/muppet/syntax_highlight/pygments.py
@@ -6,7 +6,7 @@ try:
     from pygments.lexers import get_lexer_by_name
     import pygments
     available = True
-except ModuleNotFoundError:
+except ModuleNotFoundError:  # pragma: no cover
     available = False