Fix simple_ nonce error, deal with non valid data