fix register privilege