Fixing issues with searchbar.

Changing searchcode.