Fix wrongly compute transaction confirmations