Fix bug on incr_nonce