Fixed a bug with date filters