fix a couple type errors and the progress bar