bugfix regarding progress bar and inactive activity