Fix array length in adaptVote()