Fixed buggy progress bar. Fixes #44.