Fixed a bug with search results not clearing properly