fix bugs in voteStat