REL-726: reset target fields when the type changes