fix progress bar not moving