fix searchToParams, for #3