fix vote counting