fixed NullPointerException in admin.