fix last nonce issue