Fix bug in admin.py