fixed bug with votes