fix register error