scala progress bar fixed