fixed empty string search bug