fixed bug in date filter