fixed voting errors