fixed None bug in date filter