Fixed problem of search params not updating.