Fixes computation of progress