Fix maxvote processing