Fixed bug that broke search when searching