fix crash when deleting medCompositeParameter.