fix for date filtering