fixed a bug where tallies were not being added correctly