Fixed display issue with custom date range