having problem with changing name attribute of cloned element.