diff --git a/src/ui/TMLComponentDesignPanel.java b/src/ui/TMLComponentDesignPanel.java
index dbcfc2c795f8ccaccba6b67612d2142182babb46..2bc486ced59834f0a93f810b314f9f9aaf192ec0 100755
--- a/src/ui/TMLComponentDesignPanel.java
+++ b/src/ui/TMLComponentDesignPanel.java
@@ -241,7 +241,7 @@ public class TMLComponentDesignPanel extends TURTLEPanel {
         LinkedList<AvatarAttribute> nonSecretAttributes = pvoa.getNonSecretTerms ();
 	for (AvatarAttribute attr: secretAttributes){
 		System.out.println("!!!");
-	    iterator = tmlctdp.getComponentList().listIterator();
+	    iterator = tmlctdp.getPrimitiveComponentList().listIterator();
 	    while (iterator.hasNext()){
 		tgc = (TGComponent)(iterator.next());
 		if (tgc instanceof TMLCPrimitivePort){