timerange fix