[[ RefactorSyntax ]] Fixed a potential issue in valueref_tona