Fixes passing params to search api