fix register command