fixed total_seconds bug