Fix TypeError
Merge pull request #769 from macolu/fix-typeError

Fix TypeError with sum() function