Fix for hasVoting assertion