fix silly bug with query param writing 'undefined' in search box