bug with search string being null