Add check in 2 transaction.
fix some bugs.

Signed-off-by: robertzml <robertzml@126.com>