fix issues of Transaction