diff --git a/hosting/templates/hosting/invoices.html b/hosting/templates/hosting/invoices.html
index 8eb3d02c..f2486111 100644
--- a/hosting/templates/hosting/invoices.html
+++ b/hosting/templates/hosting/invoices.html
@@ -31,7 +31,7 @@
{{ invoice.order.vm_id }} |
{{ ips|get_value_from_dict:invoice.invoice_number|join:" " }} |
{% with line_items|get_value_from_dict:invoice.invoice_number as line_items_to_show %}
- {{ line_items_to_show.period_start | date:'Y-m-d' }} — {{ line_items_to_show.period_end | date:'Y-m-d' }} |
+ {{ line_items_to_show.0.period_start | date:'Y-m-d' }} — {{ line_items_to_show.0.period_end | date:'Y-m-d' }} |
{% endwith %}
{{ invoice.total_in_chf|floatformat:2|intcomma }} |
|