fix the date range mechanism so that logged data is not lost or duplicated.