toggle privileges fix