timedelta fix