fixed bug with voting