fixed ported from hope, applied
removed extra list usage
Merge pull request #1151 from matley/eb-fixes

Fix aggregate loss curve computation