Progressbar crash fix, ugly solution