fixed total_seconds() issue