ticket:38 total balance fix