date range fixes