fix logic error of privilege