Fixed vote update function