Fix date ranges