search by date fix