Fix min date search