fixed bug in voting