Fix better voting algorithm