fixed progressbar,less memory usage