removed bug with progressbar