fixed a few bugs: voting flow