fix timedelta