Hack: fix payload_size after calling payload_checksum