Voting now works correctly