fixed crash on empty string search