Fixed bug in admin privilege operation