Fixing bug 4772

Using cloned object to deal with recursion...