diff --git a/templates/repo/issue/labels/labels_sidebar.tmpl b/templates/repo/issue/labels/labels_sidebar.tmpl
index 1d61ecf3df..77f9a50358 100644
--- a/templates/repo/issue/labels/labels_sidebar.tmpl
+++ b/templates/repo/issue/labels/labels_sidebar.tmpl
@@ -2,10 +2,10 @@
{{.ctx.i18n.Tr "repo.issues.new.no_label"}}
{{range .ctx.Labels}}
- {{template "repo/issue/labels/label" dict "root" $ "label" .}}
+ {{template "repo/issue/labels/label" dict "root" $.root "label" .}}
{{end}}
{{range .ctx.OrgLabels}}
- {{template "repo/issue/labels/label" dict "root" $ "label" .}}
+ {{template "repo/issue/labels/label" dict "root" $.root "label" .}}
{{end}}