fixed voting bug