[Fix] fix bug where progress bar was given a lenght of zero
- Fixes Issue 1, Close Issue 1