Fix total in contribution evaluation
Fix numeric error in wcor