Fixed a bug in voting.