Fixing date range clipping.