fixed #2748: Fixed some bugs about progress
Merge pull request #1121 from xingsenma/progress

fixed #2748: Fixed some bugs about progress