Fixed issues with date filter.