Fix progress bar for folder scan in GUI sample.