fixing date filter