diff --git a/templates/sheetShow.hamlet b/templates/sheetShow.hamlet
index ddcb31600..0d2f4090d 100644
--- a/templates/sheetShow.hamlet
+++ b/templates/sheetShow.hamlet
@@ -29,7 +29,7 @@
$forall fileLink <- fileLinks
$case fileLink
- $of SheetFileR _ _ _ typ name
+ $of CourseR _ _ (SheetR (SheetFileR _ typ name))
#{toPathPiece typ}
#{name}
$of other