fix total_seconds