fix total_votes callback