diff --git a/progit/templates/new_issue.html b/progit/templates/new_issue.html
index 32f8ba2..148c502 100644
--- a/progit/templates/new_issue.html
+++ b/progit/templates/new_issue.html
@@ -10,7 +10,7 @@
{% if not type or type == 'new' %}
New issue
{% elif type and type == 'edit' %}
-
Edit issue #{{ issue.id }}
+
Edit issue #{{ issueid }}
{% endif %}
@@ -21,7 +21,7 @@
{% elif type and type == 'edit' %}