fix voting bug