fixing end_date filter