Fixes date range validation.