Fix transact to use val-atom.