fixed a bug that made the progress bar stand still
cleaned public