Fix reccursive copy