Fixes the broken date filter.