fixed the progress bar to work for both platforms