fixed counterparty wallet balance bug