Hi, does anybody has any hint how I can remove and add same portlet into portal?

Simple case: Portal example with close action on each portlet. OnClose i remove portlet from ownerCt by:
Code:
portlet.ownerCt.remove(portlet, false);
Portlet has rendered property on false. Each portlet is portlets array. When I want add portlet into portal I just do:
Code:
this.items.items[0].add(portletsArray[id]);
Problem is on this line because i receive error in addCls function on line 22634. El is undefined because this element isnt rendered and protoEl property is not defined too. When I check portlet properties i can see ownerCt with correct element. When I try access element by id (or Cmp) i get null value.

Thank you in advance for any hint.