fixing a few bugs to voting flow