Fix not hiding of progress bar after scan completed