fix bug in handle_commitment_changes