fix bug that can not print progress info