Fixing voting bug