Fixed an issue with the usage of nonce()