Fix bug of set progress current before set max.