fix of getVote error handling