fixed bug in votehist