fixing accumulated error and added list item with total votes