Fixed bug that caused the page to reload even when performing a search.