Progress bar, bugfixes