Restrict progress bar to 100%. Solves #103.