fixing bug when progressbar isn't available