fixing voting bug