Fixed some bugs with store search.