diff --git a/ietf/templates/doc/document_draft.html b/ietf/templates/doc/document_draft.html
index 874f20776..1d2f55c33 100644
--- a/ietf/templates/doc/document_draft.html
+++ b/ietf/templates/doc/document_draft.html
@@ -291,7 +291,7 @@
IESG |
IESG state |
- {% if started_iesg_process and iesg_state and iesg_state.slug != "expired" and can_edit and not snapshot %}
+ {% if started_iesg_process and doc.get_state_slug != "expired" and can_edit and not snapshot %}
Edit
{% endif %}
|