Fixed typo in contract_reduce.