Correct a typo

Change "mean" to "sum" in the aggregate function.