When creating an offer on which the variable %TREATY_NAME% is to be displayed, it is not updated when the contract name is changed. The old name is then still in the variable. In principle, this means that you cannot use the variable, because after creating a contract in the project, the project name is automatically used as the contract name by the program. If you then change the contract name in step 2 and then create an offer or other document, the original, now invalid contract name always appears. So if you want to use the contract name, you have to enter it manually.