fix bugs in transaction direction summary