Fixed a bug in search button functionality.