fixed bug in vote feature