fixed nopriv bug