fixed bug in votes