Fix a bug of o3 trace generation for FT and TP

Modified the addTransaction function in both schemes.