Fixed another bug in Tally class