Correctly set progress percentage.