fix register nonce and register catch errors