daterange fix