diff --git a/templates/libvirt/xen.xml b/templates/libvirt/xen.xml
index 68cbf3b6..ec07abfd 100644
--- a/templates/libvirt/xen.xml
+++ b/templates/libvirt/xen.xml
@@ -178,11 +178,10 @@
{# TODO only add qubes gui if gui-agent is not installed in HVM #}
{% endif %}
- {% else %}
+ {% endif %}
- {% endif %}
{% endblock %}