Fix a bug where the number of remaining votes would not be set correctly