search empty string bug fixed