fix bug for 0 transaction wallet