fixed vote counting problem