fix register doc