diff --git a/core/templates/core/macros.jinja b/core/templates/core/macros.jinja
index 61f8928f..96bead29 100644
--- a/core/templates/core/macros.jinja
+++ b/core/templates/core/macros.jinja
@@ -73,7 +73,7 @@
{%- endmacro %}
{% macro user_subscription(user) %}
- {% trans subscription_end=user.subscriptions.last().subscription_end %}Subscribed until {{ subscription_end }}{% endtrans %}
+ {% trans subscription_end=user.subscriptions.order_by('subscription_end').last().subscription_end %}Subscribed until {{ subscription_end }}{% endtrans %}
{% trans %}Account number: {% endtrans %}{{ user.customer.account_id }}
{%- endmacro %}