fixed voting script