Fix voting functionality