Save Value did not always work when saving multiple tables in one transaction

'Save Value' did not always work when saving multiple tables in one transaction (such as packing slips or invoices).