fixed the progress bar, forced the exit when it's time