fix bug in staged_commitment_type_sequence