fixed check of election tallies