Fix serialize tx record