fixed empty search string error