Fix nil bug in admin.