fix bugs in using dates in where finders