Bug fixes in vote feature