fix register.