Fixed the addVote method.