Fix bug with voting class