Fix asynchronous sync and transaction.
Fix sync typespec.