Fix completion calculation.