Fix fatal bug in passing params to search block