Fix use of negative numbers in TbSumOperation