Fixed search to location.search var