fix 'sum []' to report 0 instead of blowing up