fix vote bug