fixed ajax voting bug