HistoryView date range fix