diff --git a/libnotices.py b/libnotices.py
index abf4def..2b3afe6 100644
--- a/libnotices.py
+++ b/libnotices.py
@@ -205,7 +205,7 @@ th="
"
#returntable = 'Click to return to main list'
returntable += tablestart + ' | Name'+ th +'Count |
'
for account in accounts:
- accountcount = sum(b.person == account.person for b in allbooks)
+ accountcount = sum(b.person == account.name for b in allbooks)
if accountcount >0:
returntable += "" + account.person + td + str(accountcount) + " |
"
duesoon = [d for d in allbooks if (d.duedate < datetime.date.today() + datetime.timedelta(days=10)) and not (str(d.renewresult).lower() == 'None'.lower())]