Burned by copy-paste - missed closing brackets on totals