Fix progress bar when running a search in the background.