fixed a voting bug