Repair progress bar used by gallery