Fixed the progress bar not finishing when manual timeupdate events are used