Fix getClonedElement

Change-Id: I019d1a5bd753ac5be7bda459ad85354265a55e3d