add progress bar  fix bug...