fix bug in clearing name property when cloning components