Fix for filtering dates.