progress bar bugs fixed #18