fix search with one date