Repair problem when search string is empty