Replace shallow copy with register call