bug fixes for voting