Fix vote and membership so that counter cache counts correctly