fix date filter problem