Fixes bug in progressbar in System

This removes the problem that when invoking
run multiple times, the progressbar always stops
at 99% for consecutive runs.