Fixed nonce problem with saving of data.