fixed voting error