AngularJS: Fixed completed count (close #478)