fix for custom searches with dates in them