Fix issue in verify_nonce