fix total_count