Fix a code-gen thinko in setpayload.