diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl
index 42bb421201e..c5ec8c46d24 100644
--- a/templates/repo/issue/view_title.tmpl
+++ b/templates/repo/issue/view_title.tmpl
@@ -119,7 +119,7 @@
{{ctx.Locale.TrN .Issue.NumComments "repo.issues.num_comments_1" "repo.issues.num_comments" .Issue.NumComments}}
{{if .MaybeFixed}}
- {{$fixedStr:= printf "#%d" .MaybeFixed.Issue.Link .MaybeFixed.Index}}
+ {{$fixedStr := printf "#%d" .MaybeFixed.Issue.Link .MaybeFixed.Index}}
ยท {{ctx.Locale.Tr "repo.issues.maybefixed" ($fixedStr|SafeHTML)}}
{{end}}
{{end}}