fix dateRange Bug