progress_bar with fixed bug, pull request is not accepted yet