Fixed bug where progressbar wasnt shown properly