plugins/admin: fix admin spec handling