diff --git a/hosting/templates/hosting/invoices.html b/hosting/templates/hosting/invoices.html
index 67159e54..ed4e5ab9 100644
--- a/hosting/templates/hosting/invoices.html
+++ b/hosting/templates/hosting/invoices.html
@@ -1,5 +1,5 @@
{% extends "hosting/base_short.html" %}
-{% load staticfiles bootstrap3 humanize i18n %}
+{% load staticfiles bootstrap3 humanize i18n custom_tags %}
{% block content %}
diff --git a/hosting/views.py b/hosting/views.py
index 75f273ed..0afdc909 100644
--- a/hosting/views.py
+++ b/hosting/views.py
@@ -1172,7 +1172,7 @@ class InvoiceListView(LoginRequiredMixin, ListView):
ips_dict = {}
for mab in mabs:
try:
- vm_detail = VMDetail.get(vm_id=mab.order.vm_id)
+ vm_detail = VMDetail.objects.get(vm_id=mab.order.vm_id)
ips_dict[mab.invoice_number] = [vm_detail.ipv6, vm_detail.ipv4]
except VMDetail.DoesNotExist as dne:
ips_dict[mab.invoice_number] = ['--']