Fixed npe in admin command.'