fixed incorrect global completion calculation