fix in time window distance