Fix calculation of percentage done.