Fixed a bug with max votes