diff --git a/templates/month.html b/templates/month.html
index 15d2102..fedfd0c 100644
--- a/templates/month.html
+++ b/templates/month.html
@@ -182,7 +182,7 @@
| Total |
- {% if budgeted_by_cat %}${{ budgeted_by_cat.values( | money|sum) }}{% endif %} |
+ {% if budgeted_by_cat %}${{ budgeted_by_cat.values()|sum|money }}{% endif %} |
${{ total_spending | money }} |
|