Fix bug in admin views