fix checkVote method. closes #13