Correct progress calculation

fixes #1385 on github