fix setpriv