Fixed compiler error.
Fixed crash when trying to vote.