Contract total not updating when adding new items to an existing contract

When I have a contract and I edit it, adding new items, the Contract Total field $aos_contracts_total_amt is not being updated with the line items. I am using this field in a PDF Template.
Version 7.2.1
Sugar Version 6.5.20 (Build 1001)